package entity;

import java.io.Serializable;
import java.security.Timestamp;

public class User implements Serializable {

    // 用户表id

    private Integer id;

    //用户名

    private String username;

    //用户密码，MD5加密

    private String password;

    //用户email

    private String email;

    //用户电话

    private String phone;

    //用户qq号

    private String qq;

    //用户微信号

    private String wx;

    //用户淘宝号

    private String daobao;

    //用户性别

    private String sex;

    //用户年龄

    private Integer age;

    //找回密码问题

    private String question;

    //找回密码答案

    private String answer;

    //角色0-管理员,1-普通用户

    private Integer role;

    //创建时间

    private Timestamp create_time;

    //最后一次更新时间

    private Timestamp update_time;



    private static final long serialVersionUID = 1L;



    public Integer getId() {

        return id;

    }



    public void setId(Integer id) {

        this.id = id;

    }



    public String getUsername() {

        return username;

    }



    public void setUsername(String username) {

        this.username = username;

    }



    public String getPassword() {

        return password;

    }



    public void setPassword(String password) {

        this.password = password;

    }



    public String getEmail() {

        return email;

    }



    public void setEmail(String email) {

        this.email = email;

    }



    public String getPhone() {

        return phone;

    }



    public void setPhone(String phone) {

        this.phone = phone;

    }



    public String getQq() {

        return qq;

    }



    public void setQq(String qq) {

        this.qq = qq;

    }



    public String getWx() {

        return wx;

    }



    public void setWx(String wx) {

        this.wx = wx;

    }



    public String getDaobao() {

        return daobao;

    }



    public void setDaobao(String daobao) {

        this.daobao = daobao;

    }



    public String getSex() {

        return sex;

    }



    public void setSex(String sex) {

        this.sex = sex;

    }



    public Integer getAge() {

        return age;

    }



    public void setAge(Integer age) {

        this.age = age;

    }



    public String getQuestion() {

        return question;

    }



    public void setQuestion(String question) {

        this.question = question;

    }



    public String getAnswer() {

        return answer;

    }



    public void setAnswer(String answer) {

        this.answer = answer;

    }



    public Integer getRole() {

        return role;

    }



    public void setRole(Integer role) {

        this.role = role;

    }



    public Timestamp getCreate_time() {

        return create_time;

    }



    public void setCreate_time(Timestamp create_time) {

        this.create_time = create_time;

    }



    public Timestamp getUpdate_time() {

        return update_time;

    }



    public void setUpdate_time(Timestamp update_time) {

        this.update_time = update_time;

    }

}

